package com.phospherus.test.user.service

import com.phospherus.test.BaseTest
import com.phospherus.user.service.OrgService
import com.phospherus.user.service.RoleUserService
import com.phospherus.user.service.UserService
import org.junit.Assert.assertNotNull
import org.junit.Before
import org.junit.Test
import org.springframework.beans.factory.annotation.Autowired

/**
 * @author songjinlong
 * @version 1.0
 * @since 2017/11/8
 */
class UserTest : BaseTest() {
    @Autowired
    lateinit var userService: UserService
    @Autowired
    lateinit var orgService: OrgService
    @Autowired
    lateinit var roleUserService: RoleUserService
    @Before
    fun before()= assertNotNull(userService)

    @Test
    fun getRoleUserTest() {
        print(roleUserService.getRoleUserByRoleIdAndUserId(4, 2))
    }
}